﻿package mvc{	import mvc.*;	import flash.events.EventDispatcher;		/**	 * Provides basic services for the "controller" of	 * a Model/View/Controller triad.	 */	public class AbstractController implements Controller {		private var model:EventDispatcher;		private var view:View;		/**		   * Constructor		   *		   * @param   m   The model this controller's view is observing.		   */		public function AbstractController(m:EventDispatcher) {			// Set the model.			setModel(m);		}		/**		   * Sets the model for this controller.		   */		public function setModel(m:EventDispatcher):void {			model=m;		}		/**		   * Returns the model for this controller.		   */		public function getModel():EventDispatcher {			return model;		}		/**		   * Sets the view that this controller is servicing.		   */		public function setView(v:View):void {			view=v;		}		/**		   * Returns this controller's view.		   */		public function getView():View {			return view;		}	}}